<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Test114ss extends Model
{
    /**
     * @var string
     * 关联数据表
     */
    protected $table = "user";
    /**
     * @var bool
     * 关闭时间戳
     */
    public $timestamps = false;

    /**
     * @return mixed
     * 获取全部数据
     */
    public static function GetAll(){
       return self::get();
    }
    public static function Get($where){
        return self::where($where)->paginate(5);
    }
    public static function UpOne($where,$data){
        return self::where($where)->update($data);
    }
}
